import { setupTypeAcquisition } from "@typescript/ata";
import ts from "typescript";
export function createAta(
  onDownLoadFile: (code: string, path: string) => void
) {
  const ata = setupTypeAcquisition({
    projectName: "my-ata",
    typescript: ts,
    logger: console,
    delegate: {
      receivedFile(code, path) {
        console.log("自动下载的包", path);
        onDownLoadFile(code, path);
      },
    },
  });
  return ata;
}
